import http from "@/utils/request"
export default{

//新增
  async addOrder(p){
    return await http.post("/api/order/add",p)
  },
//修改
  async editOrder(p){
    return await http.put("/api/order/updata",p)
  },
//单查
  async selectByCode(p){
    return await http.get("/api/order/selectBycode/"+p)
  },
//分页查
  async selectOrderListPage(params){
    return await http.get("/api/order/listPage",params)
  },
//删除
  async delOrder(p){
    return await http.delete("/api/order/delete/"+p)
  },
//根据供应商查
  async selectBySupplier(p){
    return await http.get("/api/order/selectBySupplierName/"+p)
  }

}
